package com.bamanker.dailylove.service;


import com.bamanker.dailylove.domain.TianXinReqParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 天行数据第三方接口
 * @author baman
 */
@Component
@FeignClient(value = "TianXinDataRemoteClient",url = "${tianxin.server}")
public interface DataRemoteClient {

    @GetMapping(value = "/tianqi/index",
            consumes = {MediaType.APPLICATION_JSON_VALUE},
            produces = {MediaType.APPLICATION_JSON_VALUE})
    String getWeather(@SpringQueryMap TianXinReqParam param);
    @GetMapping(value = "/caihongpi/index",
            consumes = {MediaType.APPLICATION_JSON_VALUE},
            produces = {MediaType.APPLICATION_JSON_VALUE})
    String getRainbow(@SpringQueryMap TianXinReqParam param);
    @GetMapping(value = "/ensentence/index",
            consumes = {MediaType.APPLICATION_JSON_VALUE},
            produces = {MediaType.APPLICATION_JSON_VALUE})
    String getDailyEnglish(@SpringQueryMap TianXinReqParam param);
    @GetMapping(value = "/qiaomen/index",
            consumes = {MediaType.APPLICATION_JSON_VALUE},
            produces = {MediaType.APPLICATION_JSON_VALUE})
    String getTips(@SpringQueryMap TianXinReqParam param);
    @GetMapping(value = "/zaoan/index",
            consumes = {MediaType.APPLICATION_JSON_VALUE},
            produces = {MediaType.APPLICATION_JSON_VALUE})
    String getMorning(@SpringQueryMap TianXinReqParam param);
    @GetMapping(value = "/wanan/index",
            consumes = {MediaType.APPLICATION_JSON_VALUE},
            produces = {MediaType.APPLICATION_JSON_VALUE})
    String getNight(@SpringQueryMap TianXinReqParam param);

}
